/*
    @author:sa
    @date:2024/11/11 16:20
*/
public class ArrayDemo02 {
    public static void main(String[] args) {
        String[] arr = {"张三", "李四", "王五"};
        arr[0] = "张三";
        System.out.println(arr[2]);
        int[] arr1 = {6, 2, 9, 12, 1, 30};
        int max = arr1[0];
        for (int i = 0; i < 6; i++) {
            if (arr1[i] > max) {
                max = arr1[i];
            }
        }
        System.out.println(max);
    }
}
